package com.yeguang.LbsApp.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yeguang.LbsApp.baidu.api.WebSvcDirectionAPI;
import com.yeguang.LbsApp.baidu.common.BaiduApiConfig;

@Controller
public class TestController {
	@Autowired
	BaiduApiConfig apiConfig;
	
	@Autowired
	WebSvcDirectionAPI direApi;
	
	@RequestMapping("/getBus")
	@ResponseBody
	String getBus(){
		return direApi.getBusInfo("红牌楼", "高棚子", "成都");
	}
	
}
